package com.ruoyi.nucleicacid.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.basics.domain.Building;
import com.ruoyi.basics.domain.Community;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 楼栋核酸任务对象 t_buildingtask
 * 
 * @author kun
 * @date 2022-10-07
 */
public class Buildingtask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 小区名 */
    @Excel(name = "小区名")
    private Long communityId;

    /** 楼栋名 */
    @Excel(name = "楼栋名")
    private Long buildingId;

    /** 任务名 */
    @Excel(name = "任务名")
    private String taskname;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date starttime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endtime;

    /** 检测位置 */
    @Excel(name = "检测位置")
    private String detectionposition;

    /** 任务人数 */
    @Excel(name = "任务人数")
    private Long tasknumber;

    /** 完成人数 */
    @Excel(name = "完成人数")
    private Long finishnumber;

    private Community community;

    private Building building;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Community getCommunity() {
        return community;
    }

    public void setCommunity(Community community) {
        this.community = community;
    }

    public Building getBuilding() {
        return building;
    }

    public void setBuilding(Building building) {
        this.building = building;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }
    public void setBuildingId(Long buildingId) 
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId() 
    {
        return buildingId;
    }
    public void setTaskname(String taskname) 
    {
        this.taskname = taskname;
    }

    public String getTaskname() 
    {
        return taskname;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setStarttime(Date starttime) 
    {
        this.starttime = starttime;
    }

    public Date getStarttime() 
    {
        return starttime;
    }
    public void setEndtime(Date endtime) 
    {
        this.endtime = endtime;
    }

    public Date getEndtime() 
    {
        return endtime;
    }
    public void setDetectionposition(String detectionposition) 
    {
        this.detectionposition = detectionposition;
    }

    public String getDetectionposition() 
    {
        return detectionposition;
    }
    public void setTasknumber(Long tasknumber) 
    {
        this.tasknumber = tasknumber;
    }

    public Long getTasknumber() 
    {
        return tasknumber;
    }
    public void setFinishnumber(Long finishnumber) 
    {
        this.finishnumber = finishnumber;
    }

    public Long getFinishnumber() 
    {
        return finishnumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("communityId", getCommunityId())
            .append("buildingId", getBuildingId())
            .append("taskname", getTaskname())
            .append("status", getStatus())
            .append("starttime", getStarttime())
            .append("endtime", getEndtime())
            .append("detectionposition", getDetectionposition())
            .append("tasknumber", getTasknumber())
            .append("finishnumber", getFinishnumber())
            .toString();
    }
}
